﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Orderr
{
    [Serializable]
    public class Client
    {
        public string name { get; set; }
        public Client(string x) { name = x; }
        public Client() {}
        public override string ToString()
        {
            return name;
        }
        public override bool Equals(object obj)
        {
            if (obj == null) return false;
            Client m = obj as Client;
            return name == m.name;
        }
        public override int GetHashCode()
        {
            return name.GetHashCode();
        }
    }
}
